import cv2
image=cv2.imread("car.png")
cv2.imshow("car",image)
cv2.waitKey()
cv2.deatroyAllWindows()

import cv2
image=cv2.imread("car.png",cv2.IMREAD_GRAYSCALE)
cv2.imshow("car",image)
k=cv2.waitKey()
if k==ord('s'):
    cv2.imwrite("D:/save_car.jpg",image)
cv2.deatroyAllWindows()

import cv2
image_Color=cv2.imread("car.png")
print("显示彩色图像的属性：")
print("shape=",image_Color.shape)
print("size=",image_Color.size)
print("type=",image_Color.dtype)
image_Gray